package net.zdsoft.wpchat.android.client;

import javax.servlet.ServletContext;

import net.zdsoft.keel.action.ActionServlet;
import net.zdsoft.keel.action.PlugIn;
import net.zdsoft.keel.config.action.ActionConfig;

/**
 * 进行服务初始化的PlugIn
 * 
 * @author xuan
 */
public class ServiceInitPlugIn implements PlugIn {

    @Override
    public void init(ActionServlet actionServlet, ActionConfig actionConfig) {
        showSystemInfo(actionServlet.getServletContext());
    }

    @Override
    public void destroy() {
    }

    // 启动时打印平台信息
    private void showSystemInfo(ServletContext context) {
        System.out.println("----------------------------------------------------------");
        System.out.println("    {Silver} v{1.0.0.0} startup");
        System.out.println("----------------------------------------------------------");
    }

}
